home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_17.lha
/
6_17
/
6_17a13.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
379b
|
16 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ x -= y
include <minmax.h> /* DELETE */
ector& vector::operator-=(vector &v1)
int l = min(v1.p->length, p->length);
float *f = p->f;
float *f1 = v1.p->f;
for (int i = 0; i < l; i++, f++, f1++)
*f -= *f1;
return *this;